<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<div class="content-wrap">
        <div class="wrapper" style="bottom: 50px;">
            <ul class="nav nav-tabs">
                <li>
                    <a href="#"  onclick="loadDiv('mainCenterDiv','${ctx}/pay/mobilePayParams/index')">移动支付参数配置列表</a>
                </li>
                <li class="active">
                    <a href="#" onclick="loadDiv('mainCenterDiv','${ctx}/pay/mobilePayParams/form')">
                        <c:choose>
                            <c:when test="${mobilePayParams.id==''|| mobilePayParams.id==null}">
                                参数配置添加
                            </c:when>
                            <c:otherwise>参数配置修改</c:otherwise>
                        </c:choose>
                    </a>
                </li>
            </ul>
            <section class="panel panel-default">
                <div class="panel-body">
                    <div class="col-lg-12">
                        <form:form id="inputForm" data-parsley-validate="" modelAttribute="mobilePayParams" onsubmit="return formSaveLoad('mainCenterDiv','inputForm','${ctx}/pay/mobilePayParams/save','${ctx}/pay/mobilePayParams/index');" method="post" class="form-horizontal">
                            <form:hidden path="id"/>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">支付方式</label>
                                    <div class="col-sm-4">
                                        <form:select path="payType" class="form-control" itemLabel="label" itemValue="value">
                                            <form:option value="0" label="微信"/>
                                            <form:option value="1" label="支付宝"/>
                                        </form:select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">公众号Id：</label>
                                    <div class="col-sm-4">
                                        <form:input path="appId" htmlEscape="false" class="form-control"  maxlength="64" />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">公众号密钥：</label>
                                    <div class="col-sm-4">
                                        <form:input path="appSerect" htmlEscape="false" class="form-control"  maxlength="64" />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">商户Id：</label>
                                    <div class="col-sm-4">
                                        <form:input path="mchId" htmlEscape="false" class="form-control"  maxlength="64" />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">支付密钥：</label>
                                    <div class="col-sm-4">
                                        <form:input path="feeKey" htmlEscape="false" class="form-control"  maxlength="64" />
                                    </div>
                                </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">ip：</label>
                                <div class="col-sm-4">
                                    <form:input path="ip" htmlEscape="false" class="form-control"  maxlength="64" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">回调URL：</label>
                                <div class="col-sm-4">
                                    <form:input path="notifyUrl" htmlEscape="false" class="form-control"  maxlength="64" />
                                </div>
                            </div>
                                <div class="form-group">
                                    <div class="col-sm-offset-2 col-sm-10">
                                        <input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存">&nbsp;
                                        <input id="btnCancel" class="btn" type="button" value="返 回" onclick="loadDiv('mainCenterDiv','${ctx}/pay/mobilePayParams/index')">
                                </div>
                            </div>
                        </form:form>
                    </div>

                </div>
            </section>
        </div>
    </div>